"""
    @Author  : Lisheng
    @Time    : 2020/9/28
    @Comment : 处理重要数据的加密和解密
"""

import base64

# # CMB
# text = "http://172.168.73.91:8080/"
# text = "http://127.0.0.1:8080/"
# CMBURL = base64.b64encode(text.encode("utf-8"))
# print(CMBURL)
#
# text = "http://172.168.73.36/lpromis5/file"
# UPLOADFILEURL = base64.b64encode(text.encode("utf-8"))
# print("UPLOADFILEURL36")
# print(UPLOADFILEURL)
#
#
#
# text = "http://172.168.73.35/lpromis5/file"
# UPLOADFILEURL = base64.b64encode(text.encode("utf-8"))
# print("UPLOADFILEURL35")
# print(UPLOADFILEURL)
#
# text = "http://biz.sinopharmtj.cn/lpromis5/file"
# UPLOADFILEURL = base64.b64encode(text.encode("utf-8"))
# print("UPLOADFILEURL77")
# print(UPLOADFILEURL)
#
# text = "admin"
# UPLOADFILEUSERNAME = base64.b64encode(text.encode("utf-8"))
# print(UPLOADFILEUSERNAME)
#
# text = "1"
# UPLOADFILEUSERPWD = base64.b64encode(text.encode("utf-8"))
# print(UPLOADFILEUSERPWD)
#
#
# text = "172.168.73.35"
# IP = base64.b64encode(text.encode("utf-8"))
# print('IP35:')
# print(IP)
#
# text = "172.168.73.36"
# TESTIP = base64.b64encode(text.encode("utf-8"))
# print('IP36:')
# print(TESTIP)
#
#
#
# text = "fileuser"
# UPLOADFILEUSERNAME = base64.b64encode(text.encode("utf-8"))
# print('文件上传用户')
# print(UPLOADFILEUSERNAME)
#
# text = "LPfileuser@213"
# UPLOADFILEUSERPWD = base64.b64encode(text.encode("utf-8"))
# print('文件上传用户密码')
# print(UPLOADFILEUSERPWD)
#
# text = "admin"
# UPLOADFILEUSERNAME = base64.b64encode(text.encode("utf-8"))
# print(UPLOADFILEUSERNAME)
#
# text = "1"
# UPLOADFILEUSERPWD = base64.b64encode(text.encode("utf-8"))
# print(UPLOADFILEUSERPWD)
#
#
# text ="logiftp"
# USERNAME = base64.b64encode(text.encode("utf-8"))
# print(USERNAME)
#
# text ="cp9T36u"
# PWD = base64.b64encode(text.encode("utf-8"))
# print(PWD)
#
# text ="root"
# SQLUSERNAME = base64.b64encode(text.encode("utf-8"))
# print("SQLUSERNAME:")
# print(SQLUSERNAME)
#
# text ="1234"
# SQLPWD = base64.b64encode(text.encode("utf-8"))
# print("SQLPWD:" )
# print(SQLPWD)
#
# text ="lpromis"
# DBNAME = base64.b64encode(text.encode("utf-8"))
# print("DBNAME:")
# print(DBNAME)


# text ="172.168.73.104"
# DBNAME = base64.b64encode(text.encode("utf-8"))
# print("MA FTP IP:")
# print(DBNAME)



text ="wmsftp"
DBNAME = base64.b64encode(text.encode("utf-8"))
print("MA FTP Username:")
print(DBNAME)

text ="Ftp56%^sinotj"
DBNAME = base64.b64encode(text.encode("utf-8"))
print("MA FTP Password:")
print(DBNAME)



# aGVsbG8gd29yZCAh
# s1 = base64.b64decode(s)
# print(s1)
# hello world !

#
# import hashlib
#
# text = '172.168.73.35'
# m = hashlib.md5()
# m.update(text.encode("utf-8"))
# print(m.hexdigest())
# # 31b0c70dac41ed7ce0d185213275ae64